package com.vae.controller;

import com.vae.base.model.page.PageParams;
import com.vae.dto.SearchCourseParamDto;
import com.vae.dto.SearchPageResultDto;
import com.vae.po.CourseIndex;
import com.vae.service.CourseSearchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description 课程搜索
 */
@Api(value = "课程搜索接口",tags = "课程搜索接口")
 @RestController
 @RequestMapping("/course")
public class CourseSearchController {

 @Autowired
 CourseSearchService courseSearchService;

 /**
  * 课程搜索列表
  * @param pageParams
  * @param searchCourseParamDto
  * @return
  */
 @ApiOperation("课程搜索列表")
  @GetMapping("/list")
 public SearchPageResultDto<CourseIndex> list(PageParams pageParams, SearchCourseParamDto searchCourseParamDto){

    return courseSearchService.queryCoursePubIndex(pageParams,searchCourseParamDto);
   
  }
}
